package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 练课进度
 * </p>
 *
 * @author hpiggy
 * @since 2024-10-09
 */
@TableName("practice_plan")
@ApiModel(value = "PracticePlan对象", description = "练课进度")
@Data
public class PracticePlan implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Integer yearPart;

    private Integer quarterNum;

    private Integer yearClassId;

    private Integer lessonNum;

    private Long subjectsId;

    @TableField(exist = false)
    private String subjectsName;

    private Long teacherId;

    @ApiModelProperty("班型id")
    private Long classTypeId;

    @ApiModelProperty("类型id")
    private Long practiceTypeId;

    @ApiModelProperty("完成数量：1已完成，0未完成")
    private Integer finishNum;

    @ApiModelProperty("选项")
    private String optionValue;

    @ApiModelProperty("选项分数")
    private Integer score;

    @ApiModelProperty("审核老师")
    private Long auditTeacherId;

    private Integer isCheck;

    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;

    @TableField(exist = false)
    private String teacherName;

    @TableField(exist = false)
    private String yearClassName;

    @TableField(exist = false)
    private String classTypeName;

    @TableField(exist = false)
    private String practiceTypeName;

    @TableField(exist = false)
    private Integer showPassNum;

    @TableField(exist = false)
    private Integer yetPassNum;

    @TableField(exist = false)
    private Integer notPassNum;

    @TableField(exist = false)
    private Integer allScore;

    @TableField(exist = false)
    private Integer type;

    @TableField(exist = false)
    private String auditTeacherName;

    @TableField(exist = false)
    private List<Long> idList;

}
